package com.yelobblog.yelobblog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yelobblog.yelobblog.domain.entity.user;
import org.springframework.transaction.annotation.Transactional;

public interface userService extends IService<user> {
    String Login(String email, String password);

    Boolean Register(String email, String password, String code);

    void SendCode(String email);

    user getSelfInfo();

    user getUserInfo(Integer userId);

    void updateUserInfo(user user);

    void follow(Integer followId);

    @Transactional
    void unfollow(Integer followId);
}
